import request from '@/utils/request'

// 获取贴子列表
export const getPostListAPI = (data) => {
    return request.get({
        url: '/admin/m/posts/page',
        data
    })
}

// 获取话题  /admin/m/topic/page

export const getTopicListAPI = (data) => {
    return request.get({
        url: '/admin/m/topic/page',
        data
    })
}

// 获取话题详情  /admin/m/topic/{id}
export const getTopicDetailAPI = (id: string) => {
    return request.get({
        url: `/admin/m/topic/${id}`
    })
}
